<!-- target: mallForm(master = formPage) -->
<!-- block: crumb -->
    <!-- import: mallFormCrumb -->
<!-- /block -->
<!-- block: formMain -->
    <!-- import: mallFormMain -->
<!-- /block -->

<!-- target: mallFormCrumb(master = crumb) -->
<!-- block: path -->
    <span>购物中心管理</span>
    <span><!-- if: ${formType} === 'create' -->新增<!-- else: -->编辑<!-- /if -->购物中心</span>
<!-- /block -->

<!-- target: mallFormMain(master = customFormView) -->
<!-- block: sections -->
    <!-- import: mallBaseContent -->
<!-- /block -->
<!-- block: submitSection -->
<button type="submit" data-ui-type="Button" data-ui-id="submit" data-ui-group="submit" data-ui-variants="warning wide" class="submit-button">确认提交</button>
<!-- /block -->

<!-- target: mallBaseContent -->
<section class="form-section">

    <div class="ui-form-row">
        <!-- use:
            textboxField(
                field = 'username',
                title = '登录用户名',
                length = 80,
                width = 200,
                required = true,
                description = '用户名不能修改'
            )
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            textboxField(
                field = 'name',
                title = '购物中心名称',
                length = 120,
                width = 300,
                required = true
            )
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            textboxField(field = 'prefix', title = '购物中心简介', length = 120, width = 600, height = 160, mode = 'textarea')
        -->
    </div>
    
    <div class="ui-form-row">
        <!-- use:
            textboxField(field = 'emchatGroupID', title = '聊天群ID', length = 120, width = 300)
        -->
    </div>
    
    <div class="ui-form-row">
        <!-- use:
            textboxField(field = 'developer', title = '开发商', length = 120, width = 300)
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            textboxField(field = 'operator', title = '运营商', length = 120, width = 300)
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            mallPerson(field = 'chargePerson', title = '负责人员')
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            textboxField(field = 'chargePerson.department', title = '隶属部门', length = 100, width = 200)
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            mallPerson(field = 'director', title = '市场总监')
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            toggleSelectField(
                id = 'district',
                field = 'districtid',
                width = 200,
                title = '所在城市',
                datasource = 'cityList',
                required = true
            )
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            addressField(
                field = 'address',
                title = '地址',
                width = 500
            )
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            logoField(
                title = '购物中心LOGO',
                id = 'logo',
                field = 'logoType',
                fieldType = ${logoPic | indexOf('http')} === 0 ? 'pic' : 'text',
                uploadUrl = ${uploadUrl},
                textRequired = true,
                radioTab = true
            )
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            uploaderWithPreviewField(
                field = 'projectPic',
                title = '项目照片',
                imageWidth = 250,
                uploadUrl = ${uploadUrl},
                required = true,
                descriptions = ['图片尺寸不低于400*200，推荐800*400', '单张图片大小不超过300k']
            )
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            uploaderWithPreviewField(
                field = 'idPic1', title = '身份证正面', imageWidth = 250,
                uploadUrl = ${uploadUrl}, required = true,
                descriptions = ['图片尺寸不低于400*200，推荐800*400', '单张图片大小不超过300k']
            )
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            uploaderWithPreviewField(
                field = 'idPic2', title = '身份证背面', imageWidth = 250,
                uploadUrl = ${uploadUrl}, required = true,
                descriptions = ['图片尺寸不低于400*200，推荐800*400', '单张图片大小不超过300k']
            )
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            uploaderWithPreviewField(
                field = 'qrcode', title = '公众号二维码', imageWidth = 200,
                uploadUrl = ${uploadUrl}, required = true,
                descriptions = ['请从微信个人信息中获取二维码图片上传']
            )
        -->
    </div>
</section>


<!-- target: mallPerson(master = formLabelValueField) -->
<!-- block: value -->
    <!-- use:
        textbox(
            field = ${field} + '.name',
            length = 60,
            width = 150
        )
    -->
    <span class="ml10 mr10">联系电话:</span>
    <!-- use:
        textbox(
            field = ${field} + '.tel',
            length = 60,
            width = 150
        )
    -->
    <span class="ml10 mr10">手机号码:</span>
    <!-- use:
        textbox(
            field = ${field} + '.phone',
            length = 60,
            width = 150
        )
    -->
<!-- /block -->
